package com.cskaoyan.shopping.constants;

public class GlobalConstants {

    public final static String HEADER_PANEL_CACHE_KEY="header_panel"; //导航栏板块缓存
    public final static int HEADER_PANEL_EXPIRE_TIME = 1; //过期时间  单位 day

    public final static int HEADER_PANEL_ID=0;//导航栏板块表id

    public final static int RECOMMEND_PANEL_ID=6;//推荐商品板块表id
    public final static String RECOMMEND_PANEL_CACHE_KEY="recommend_panel";//推荐商品板块缓存key
    public final static int RECOMMEND_CACHE_EXPIRE = 1;

    public final static String PRODUCT_ITEM_CACHE_KEY = "product_item";//商品详情缓存前缀
    public final static int PRODUCT_ITEM_EXPIRE_TIME = 1; //过期时间  单位 day

    public final static String PRODUCT_CATE_CACHE_KEY = "product_cate";//商品分类缓存前缀
    public final static int PRODUCT_CATE_EXPIRE_TIME = 1; //过期时间  单位 day

    public final static String HOMEPAGE_CACHE_KEY="home_page";//商品主页缓存前缀
    public final static int HOMEPAGE_EXPIRE_TIME=1; //过期时间

    // 首页一级panel的position
    public final static int HOMEPAGE_POSITION = 0;

    public final static String CART_ITEM_CACHE_PREFIX="cart_item";

    // 导航栏模块的排序字段
    public final static String PANEL_CONTENT_ORDER = "sort_order";
    // 首页版块的排序字段
    public final static String HOME_PANEL_ORDER = "sort_order desc";

    // item表中未下架的商品status
    public final static int ITEM_STATUS_NORMAL = 1;

    // 获取分页商品，如果没指定排序，按创建时间降序
    public final static String ALL_PRODUCT_DEFAULT_SORT = "created desc";

}
